package top.psjj.mall.model.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 获取产品类别修改数据
 */
@Data
public class UpdateCategoryReq {
    //产品类别id
    @NotNull(message = "产品类别id不能为null")
    private Integer id;
    @Size(min = 2,max = 5)
    private String name;
    @Max(value = 3,message = "目录层级不能小于3")
    private Integer type;
    private Integer parentId;
    private Integer orderNum;
}
